package cn.promonkey.api.menuInterface.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.promonkey.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/** @author ninelock-ai */
@Data
@TableName("interface")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Interface extends BaseEntity { 
  /** 企业ID */
  @TableField(value = "business_id")
  private Integer businessId;
  /** 系统id */
  @TableField(value = "system_id")
  private Integer systemId;
  /** 菜单ID */
  @TableField(value = "menu_id")
  private Integer menuId;
  /** 接口ID */
  @TableId(value = "interface_id", type = IdType.AUTO)
  @TableField(value = "interface_id")
  private Integer interfaceId;
  /** 接口名称 */
  @TableField(value = "interface_key")
  private String interfaceKey;
  /** 接口名称 */
  @TableField(value = "interface_name")
  private String interfaceName;
  /** 创建用户ID */
  @TableField(value = "user_id")
  private Integer userId;
  /** 类型 */
  @TableField(value = "type")
  private Integer type;
  /** 状态 */
  @TableField(value = "status")
  private Integer status;
}
